package com.linkwedo.saas.users;

import java.util.List;

import com.linkwedo.saas.domain.member.Team;

public class TeamService {
	
	
	private TeamDao TeamDao;

	public TeamDao getTeamDao() {
		return TeamDao;
	}

	public void setTeamDao(TeamDao TeamDao) {
		this.TeamDao = TeamDao;
	}

	public Team getTeam(Team Team) {
		List<Team> uList = getTeamDao().findByExample(Team);
		return uList.get(0);
	}
	public List findAll() {		
		try {
			return getTeamDao().findAll();
		} catch (RuntimeException re) {
			throw re;
		}
	}
	public void save(Team transientInstance) {		
		try {			
			getTeamDao().save(transientInstance);		
		} catch (RuntimeException re) {			
			throw re;
		}
	}
}
